package com.onesports.intelligent.k12.polarlight.mapper.market;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.onesports.intelligent.k12.polarlight.domain.dto.market.EducationEvaluationRecordPageDTO;
import com.onesports.intelligent.k12.polarlight.domain.dto.wx.CoachEvaluateDTO;
import com.onesports.intelligent.k12.polarlight.domain.entity.market.EducationEvaluationRecord;
import com.onesports.intelligent.k12.polarlight.domain.vo.market.EducationEvaluationRecordDetailVO;
import com.onesports.intelligent.k12.polarlight.domain.vo.market.EducationEvaluationRecordPageVO;
import com.onesports.intelligent.k12.polarlight.domain.vo.wx.CoachEvaluateVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 教学评价表
 *
 * @author
 * @since 1.0.0 2022-07-08
 */
@Mapper
public interface EducationEvaluationRecordMapper extends BaseMapper<EducationEvaluationRecord> {
    /**
     * 分页
     * @param page
     * @param dto
     * @param organizationId
     * @return
     */
    IPage<EducationEvaluationRecordPageVO> getPage(Page<EducationEvaluationRecordPageVO> page
            ,@Param("dto") EducationEvaluationRecordPageDTO dto
            ,@Param("organizationId") String organizationId);

    /**
     * 根据评价表id获取详细信息
     * @param id
     * @param orgId
     * @return
     */
    EducationEvaluationRecordDetailVO getDetail(@Param("id") String id,
                                                @Param("orgId") String orgId);

    /**
     * 班级列表获取教练的评价
     * @param dto 入参
     * @return 教练评价
     */
    CoachEvaluateVO getEvaluate(@Param("dto") CoachEvaluateDTO dto);
}
